package com.xtzn.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xtzn.mapper.IRetainedListMapper;
import com.xtzn.mapper.entity.RetainedList;
import com.xtzn.service.IRetainedListService;
import com.xtzn.vo.TaskRequest;

/**
 * 功能描述: <br>
 * **
 * 
 * @author zyw
 * @version [版本号, 2018年4月19日]
 */
@Service
public class RetainedListServiceImpl implements IRetainedListService {

	@Autowired
	private IRetainedListMapper retainedListDao;
	
	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public List<Map<String,Object>> selectRetainedListForManage(TaskRequest taskRequest) {
		// TODO Auto-generated method stub
		return retainedListDao.selectRetainedListForManage(taskRequest);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public Integer selectCountForManage(TaskRequest taskRequest) {
		// TODO Auto-generated method stub
		return retainedListDao.selectCountForManage(taskRequest);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月20日]
	 */
	@Override
	public int insertRetainedList(RetainedList retainedList) {
		// TODO Auto-generated method stub
		return retainedListDao.insertRetainedList(retainedList);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月20日]
	 */
	@Override
	public int updateRetainedList(RetainedList retainedList) {
		// TODO Auto-generated method stub
		return retainedListDao.updateRetainedList(retainedList);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月20日]
	 */
	@Override
	public int deleteByCondition(TaskRequest taskRequest) {
		// TODO Auto-generated method stub
		return retainedListDao.deleteByCondition(taskRequest);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月20日]
	 */
	@Override
	public int deleteBatchById(List<Integer> list) {
		// TODO Auto-generated method stub
		return retainedListDao.deleteBatchById(list);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月21日]
	 */
	@Override
	public List<Map<String, Object>> selectRetaiedListForReport(TaskRequest taskRequest) {
		// TODO Auto-generated method stub
		return retainedListDao.selectRetaiedListForReport(taskRequest);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月21日]
	 */
	@Override
	public Integer selectCountForReport(TaskRequest taskRequest) {
		// TODO Auto-generated method stub
		return retainedListDao.selectCountForReport(taskRequest);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月28日]
	 */
	@Override
	public int updateRetainedListForlua(RetainedList retainedList) {
		// TODO Auto-generated method stub
		return retainedListDao.updateRetainedListForlua(retainedList);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月28日]
	 */
	@Override
	public List<RetainedList> selectRetainedListForReplaceUploadPath(RetainedList retainedList) {
		// TODO Auto-generated method stub
		return retainedListDao.selectRetainedListForReplaceUploadPath(retainedList);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月28日]
	 */
	@Override
	public List<Map<String, Object>> selectRetainedListdtlForReport(Integer taskId, String uploadTime, Integer userId,
			Integer pageSize, Integer skips) {
		// TODO Auto-generated method stub
		return retainedListDao.selectRetainedListdtlForReport(taskId, uploadTime, userId, pageSize, skips);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月28日]
	 */
	@Override
	public Integer selectCountByRetainedListdtlForReport(Integer taskId, String uploadTime, Integer userId) {
		// TODO Auto-generated method stub
		return retainedListDao.selectCountByRetainedListdtlForReport(taskId, uploadTime, userId);
	}

}
